<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body class="box">
    <ul>
        <li>0</li>
        <li class="item">1</li>
        <li>2</li>
        <li class="item">3</li>
        <li>4</li>
    </ul>
    <input type="text" name="username" id="">
    <input type="text" name="username" id="">
    <script>
        console.log(document.getElementsByTagName('li'));
        console.log(document.getElementsByClassName('item'));
        console.log(document.getElementsByName('username'));



    </script>
</body>

</html>